<div class="page-user-profile">
    <? /*<ul class="breadCrumbs">
        <li><a href="/">Главная</a></li>
        <li>></li>
        <li><a href="/users/">Пользователи</a></li>
        <li>></li>
        <li><?= $fields['name']->content ?></li>
    </ul> */ ?>

    <ul class="breadCrumbs">
        <li><a href="/">Главная</a></li>
        <li>/</li>
        <li><a href="/users/">Пользователи</a></li>
        <li>/</li>
    </ul>

    <div class="rightBox">
        <? $noimage = '<img src="/sites/all/themes/webscience/img/noimage.jpg" width="350" />'?>
        <div class="avatar"><?= ($avatar = $fields['picture']->content) ? $avatar : $noimage ?></div>
    </div>
    <div class="leftBox">

        <h3><?= $fields['name']->content ?></h3>

        <? $field_names = array(
            'Имя'     => 'field_profile_name',
            'Фамилия' => 'field_profile_surname',
            'Пол'     => 'field_profile_sex',
            'Зарегистрирован' => 'created',
        ); ?>

        <? foreach ($field_names as $label => $field_name) { ?>
        <div class="entity">
            <div class="field">
                <div class="field-label"><?=$label?>:</div>
                <div class="field-items">
                    <? $empty = '<span class="empty">Нет данных</span>'?>
                    <?= ($cnt = $fields[$field_name]->content) ? $cnt : $empty?>
                </div>
            </div>
        </div>
        <? }?>

        <div class="edit-link"><?= $fields['edit_node']->content ?></div>

    </div>
</div>
<div class="cb"><span><!-- just for correct floatin' --></span></div>
